package com.backend.aptromview.mapper;

import java.util.List;

import com.backend.aptimgview.domain.AptimgView;
import com.backend.aptromview.domain.AptromView;

public interface AptromViewMapper
{
    /*
    以下都是查找
     */
    public AptromView selectAptromViewByApartmentIncludeRoomId(Long apartmentIncludeRoomId);
    public List<AptromView> selectAptromViewList(AptromView aptromView);
    //查找公寓id对应的空闲房间数：
    int queryFreeRoomNumByApartmentId(Long apartmentId);

    //新增：
    int insertApartmentIncludeRoom(AptromView aptromView);


    //更新：
    int updateApartmentIncludeRoom(AptromView aptromView);

    //删除：
//    public int deleteAptromViewByApartmentId(Long apartmentId);
    public int deleteAptromViewByApartmentIds(Long[] apartmentIds);

}
